package com.hmall.order.common;

public class BaseContext {
    private static ThreadLocal threadLocal=new ThreadLocal();
    public static void setThreadLocalId(long userId){
        threadLocal.set(userId);
    }

    public static Long getThreadLocalId(){
        return  (long)threadLocal.get();
    }

    public static void removeThreadLocal() {
         threadLocal.remove();
    }
}
